home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Tool Chest / Dev.CD Feb 97 TC.toast / Sample Code / Interapplication Communication / MenuScripter 4.0 / Sources / MSAECoercions.h < prev    next >
Encoding:
Text File  |  1996-07-09  |  977 b   |  40 lines  |  [TEXT/CWIE]

  1. // MSAECoercions.h
  2. //
  3. // Original version by Jon Lansdell and Nigel Humphreys.
  4. // 4.0 and 3.1 updates by Greg Sutton.
  5.  
  6. // ©Apple Computer Inc 1996, all rights reserved.
  7.  
  8. #ifndef __MSAECOERCIONS__
  9. #define __MSAECOERCIONS__
  10.  
  11. #include <AppleEvents.h>
  12. #include <AEObjects.h>
  13. #include <AERegistry.h>
  14.  
  15. OSErr            InstallCoercions(void);
  16.  
  17. pascal OSErr    CoerceObjToAnything(const AEDesc    *theAEDesc,
  18.                                     DescType        toType,
  19.                                     long            handlerRefCon,
  20.                                     AEDesc            *result);
  21.  
  22. pascal OSErr    CoerceDocumentToText(AEDesc    *theAEDesc,
  23.                                     DescType        toType,
  24.                                     long            handlerRefCon,
  25.                                     AEDesc            *result);
  26.  
  27. pascal OSErr    CoerceDocumentPropertyToText(AEDesc        *theAEDesc,
  28.                                             DescType    toType,
  29.                                             long        handlerRefCon,
  30.                                             AEDesc        *result);
  31.  
  32. pascal OSErr    CoerceDocumentToWindow( DescType    typeCode,
  33.                                         Ptr            dataPtr,
  34.                                         Size        dataSize,
  35.                                         DescType    toType,
  36.                                         long        handlerRefcon,
  37.                                         AEDesc*        result );
  38.  
  39. #endif
  40.